//
//  UrlTool.m
//  Jyxt
//
//  Created by 刘日 on 17/5/18.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "UrlTool.h"
#import "MixViewController.h"


@implementation UrlTool

+ (NSString *)createHtmlUrl: (NSString *)sub{
    return [NSString stringWithFormat: @"%@%@" , HTML_HOST , sub];
}

+ (NSString *)createApiUrl:(NSString *)sub{
//    if ([sub isEqualToString:API_CLIENT_REGISTER]) {
//       return [NSString stringWithFormat: @"http://42.56.72.129:8081/jyxt/app/%@", sub]; 
//    }
    return [NSString stringWithFormat: @"%@%@" , API_HOST , sub];
}

+ (void)mixLoad: (NSString *)htmlUrlSub{
    MixViewController *mixVc = [[MixViewController alloc] init];
    mixVc.url = [UrlTool createHtmlUrl: htmlUrlSub];
    [LKFreeCtrl pushViewController: mixVc];
}

@end
